﻿<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
    <meta http-equiv="Cache-Control" content="max-age=0" />
	<meta name="MobileOptimized" content="240"/>
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=yes" />
	
	<meta name="keywords" content="keywords String">
	<meta name="description" content="description String">
	<meta name="robots" content="all">
	<meta name="author" content="author string">

	<script>
        
        function elementFromPointIsUsingViewPortCoordinates() 
		{
            if (window.pageYOffset > 0) 
            {    
                // page scrolled down
                return (window.document.elementFromPoint(0, window.pageYOffset + window.innerHeight -1) == null);
            } 
            else if (window.pageXOffset > 0) 
            {   
                // page scrolled to the right
                return (window.document.elementFromPoint(window.pageXOffset + window.innerWidth -1, 0) == null);
            }
            
            return false; // no scrolling, don't care
		}
        
        function viewportCoordinateToDocumentCoordinate(x,y) 
		{
            var coord = new Object();
            coord.x = x + window.pageXOffset;
            coord.y = y + window.pageYOffset;
            return coord;
		}
        
		function elementFromViewportPoint(x,y) 
		{
            if (elementFromPointIsUsingViewPortCoordinates()) 
            {
                return window.document.elementFromPoint(x,y);
            } 
            else 
            {
                var coord = viewportCoordinateToDocumentCoordinate(x,y);
                return window.document.elementFromPoint(coord.x,coord.y);
            }
		}
        
		function endWith(str,endStr)
		{
			//alert(str);
			//alert(endStr);
			
			var ret=false;
			var i=0;
			if(str.length <endStr.length)
			{
				ret=false;
				i=1;
			}
			else if(str==endStr)
			{
				ret=true;
				i=2;
			}
			else if(str.substring(str.length-endStr.length)==endStr)
			{
				ret=true;
				i=3;
			}
			//alert(i);
			return ret;
		}

		function imgOnload(img)
		{
			var ret=endWith(img.src,"@2x.png");
			if(ret)
			{
				img.width=img.width/2;//不用再设置 img.height=img.height/2;
                img.style.visibility="visible";
			}
		}
		
	</script>
</head>


    <body>
        
        <div style="margin:auto;width:190px;height:91px;position:absolute;top:50%;left:50%;margin:-45px 0 0 -95px;">
            <img src="webview_404@2x.png" onload="imgOnload(this)" style="visibility:hidden;"> 
                <a href="http" style="position:relative;left:30px;"><img src="webview_refresh@2x.png" onload="imgOnload(this);" onclick="refresh" style="visibility:hidden"/></a>
                </div>
        
    </body>
</html>